set more 1

log using mn_specifications_final_ASM.log, replace


use mn_job_survey_allyears_cleaned_matchedjobtitle.dta

tostring reptunit, replace
gen empid=uiaccount+reptunit

egen id =group(cleaned_job_title_match empid) 

egen id2 =group(cleaned_job_title empid)

egen id3=group(cleaned_job_title_match)

egen empjobregionid=group(cleaned_job_title empid spec_area)

foreach rate in ur ur_region {
	replace `rate'=`rate'/100
}

capture drop d_experience
gen d_experience=experience==2 if experience<9 
tab experience d_experience
replace d_experience=1 if experience==1


reg d_college ur_region i.year i.spec_area, cluster(spec_area)

reghdfe d_college ur_region, a(year empjobregionid) vce(cluster spec_area)

reghdfe d_college ur_region d_ptft no_benefits, a(year empjobregionid) vce(cluster spec_area)


reg d_experience ur_region i.year i.spec_area, cluster(spec_area)

reghdfe d_experience ur_region, a(year empjobregionid) vce(cluster spec_area)

reghdfe d_experience ur_region d_ptft no_benefits, a(year empjobregionid) vce(cluster spec_area)

